import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


import '../../AppConfig/Config.dart';
import '../../l10n/messages.dart';

class DriverIDPhoto extends StatefulWidget {
  const DriverIDPhoto({super.key});

  @override
  State<DriverIDPhoto> createState() => _DriverIDPhotoState();
}

class _DriverIDPhotoState extends State<DriverIDPhoto> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    var messages = AppLocalizations.of(context)!;
    return Scaffold(
     backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: Text("司机证件",style: TextStyle(color: Colors.black,fontWeight: FontWeight.w300,fontSize: 16.sp),),
        centerTitle: true,
      ),
      body: Container(
        decoration: BoxDecoration(
          gradient: LinearGradient(
            begin: Alignment.topCenter,
            end: Alignment.bottomCenter,
            colors: [Color.fromRGBO(251,236,228,1),Color.fromRGBO(251,236,228,1), MyColors.backgreyColor],
          ),
        ),
        child: ListView(
          children: [
            Container(
              margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
              padding: EdgeInsets.only(left: 8.w,right: 8.w,top: 18.h,bottom: 19.h),

              decoration: BoxDecoration(
                borderRadius: BorderRadius.all(Radius.circular(10)),
                color: Colors.white,
                image: DecorationImage(
                  image: AssetImage('lib/Images/OrderList/证件分享水印icon.png'), // 替换成你的图片路径
                  fit: BoxFit.cover,
                ),
              ),
              child: Column(
                  children: [
                    ClipOval(
                      child: Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                        width: 59.w,
                        height: 59.h,
                        fit: BoxFit.cover,
                      ),
                    ),
                    SizedBox(height: 10.h,),
                    Text("张大帅",style: TextStyle(color: Colors.black,fontSize: 16.sp),),
                    SizedBox(height: 4.h,),
                    Text("12345678910",style: TextStyle(color: Colors.black,fontSize: 16.sp),),
                    SizedBox(height: 20.h,),
                    Divider(height: 1.h,color: MyColors.backgreyColor,),
                    SizedBox(height: 19.h,),
                    Text("注册人身份证",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                    SizedBox(height: 4.h,),
                    Text("411234567890123456",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                    SizedBox(height: 8.h,),
                    Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),

                      ],
                    ),
                    SizedBox(height: 20.h,),
                    Text("驾驶证主副页",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                    SizedBox(height: 7.h,),
                    Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),

                      ],
                    ),
                    SizedBox(height: 20.h,),
                    Text("行驶证主副页",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
                    SizedBox(height: 7.h,),
                    Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),
                        Image.network( "https://t12.baidu.com/it/u=2009860844,206760771&fm=30&app=106&f=JPEG?w=640&h=426&s=41313C722D374B925CF3F3D30300D0A9",
                          width: 162.w,
                          height: 100.h,
                          fit: BoxFit.cover,
                        ),

                      ],
                    ),
                  ]
              ),
            ),

      Container(
        margin: EdgeInsets.only(top: 8.h,left: 10.w,right: 10.w),
        padding: EdgeInsets.all(15),
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.all(Radius.circular(10)),
        ),
        child: Text("以上所有内容仅供速配货司机分享给交易运单的货主查看使用，禁止用于其他任何用途。擅自泄漏公民个人信息，涉嫌违法犯罪，未经信息持有者同意严禁转发，否则自行承担一切法律后果。",
           style: TextStyle(color: Colors.black,fontSize: 13.sp), ),
      ),
          ],
        ),
      ),
    );
  }
}
